package com.sky.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 自定义的定时任务类
 */
//@Component
@Slf4j
public class MyTask {
    @Scheduled(cron = "0/5 * * * * ? ")
    public void executeTask(){
        // ding shi ren wu luo ji
        log.info("第一次学习了Spring-Task");//测试成功
    }
}
